#ifndef __SOCKET_H
#define __SOCKET_H

#include <types.h>
#include <Address.h>
#include <TransferCount.h>

class Socket
{
 protected:
   Address addr;
   SOCKET sd;
   TransferCount tc;
   
 public:
   Socket();
   
   virtual int read(void* buf, size_t n=1);
   virtual int write(void* buf, size_t n=1);
   Address getAddr();
   TransferCount getTC();
   virtual void close();
};

#endif
